package crp.core.academic.domain.models;

import com.qwlabs.auditing.AuditedEntity;
import crp.core.shared.Tables;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.OffsetDateTime;

@Getter
@Setter
@Entity@Table(name = Tables.ACADEMIC_YEAR)
public class AcademicYearEntity extends AuditedEntity {
    @Id
    @GeneratedValue(generator = "UUID")
    @GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator")
    private String id;
    private Integer year;
    private OffsetDateTime startAt;
    private OffsetDateTime endAt;
}
